package com.imelite.qyh.repository;


import com.imelite.qyh.base.ApplicationContextHelper;
import com.imelite.qyh.model.EliteCRMView_OrgUser;
import com.imelite.qyh.service.EliteCRMView_OrgUserService;

public class EliteCRMView_OrgUserRepository {
    EliteCRMView_OrgUserService eliteCRMView_orgUserService= (EliteCRMView_OrgUserService)
            ApplicationContextHelper.getBean("eliteCRMView_OrgUserService");

    private static EliteCRMView_OrgUserRepository instance = null;
    public static synchronized EliteCRMView_OrgUserRepository getInstance() {
        if (instance == null) {
            instance = new EliteCRMView_OrgUserRepository();
        }
        return instance;
    }

    public EliteCRMView_OrgUser selectByWxcode(String wxcode){
        EliteCRMView_OrgUser eliteCRMView_orgUser=eliteCRMView_orgUserService.selectByWxcode(wxcode);
        if(eliteCRMView_orgUser==null){
            eliteCRMView_orgUser=new EliteCRMView_OrgUser();
        }
        return eliteCRMView_orgUser;
    }
}
